﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FBF RID: 4031
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueRecordInfo : IMessage<RogueRecordInfo>, IMessage, IEquatable<RogueRecordInfo>, IDeepCloneable<RogueRecordInfo>, IBufferMessage
	{
		// Token: 0x17003305 RID: 13061
		// (get) Token: 0x0600B46B RID: 46187 RVA: 0x001E6E3B File Offset: 0x001E503B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueRecordInfo> Parser
		{
			get
			{
				return RogueRecordInfo._parser;
			}
		}

		// Token: 0x17003306 RID: 13062
		// (get) Token: 0x0600B46C RID: 46188 RVA: 0x001E6E42 File Offset: 0x001E5042
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueRecordInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003307 RID: 13063
		// (get) Token: 0x0600B46D RID: 46189 RVA: 0x001E6E54 File Offset: 0x001E5054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueRecordInfo.Descriptor;
			}
		}

		// Token: 0x0600B46E RID: 46190 RVA: 0x001E6E5B File Offset: 0x001E505B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRecordInfo()
		{
		}

		// Token: 0x0600B46F RID: 46191 RVA: 0x001E6E84 File Offset: 0x001E5084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRecordInfo(RogueRecordInfo other) : this()
		{
			this.buffList_ = other.buffList_.Clone();
			this.avatarList_ = other.avatarList_.Clone();
			this.miracleList_ = other.miracleList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B470 RID: 46192 RVA: 0x001E6EDB File Offset: 0x001E50DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRecordInfo Clone()
		{
			return new RogueRecordInfo(this);
		}

		// Token: 0x17003308 RID: 13064
		// (get) Token: 0x0600B471 RID: 46193 RVA: 0x001E6EE3 File Offset: 0x001E50E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueBuff> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x17003309 RID: 13065
		// (get) Token: 0x0600B472 RID: 46194 RVA: 0x001E6EEB File Offset: 0x001E50EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueRecordAvatar> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x1700330A RID: 13066
		// (get) Token: 0x0600B473 RID: 46195 RVA: 0x001E6EF3 File Offset: 0x001E50F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> MiracleList
		{
			get
			{
				return this.miracleList_;
			}
		}

		// Token: 0x0600B474 RID: 46196 RVA: 0x001E6EFB File Offset: 0x001E50FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueRecordInfo);
		}

		// Token: 0x0600B475 RID: 46197 RVA: 0x001E6F0C File Offset: 0x001E510C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueRecordInfo other)
		{
			return other != null && (other == this || (this.buffList_.Equals(other.buffList_) && this.avatarList_.Equals(other.avatarList_) && this.miracleList_.Equals(other.miracleList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B476 RID: 46198 RVA: 0x001E6F74 File Offset: 0x001E5174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.buffList_.GetHashCode();
			num ^= this.avatarList_.GetHashCode();
			num ^= this.miracleList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B477 RID: 46199 RVA: 0x001E6FC4 File Offset: 0x001E51C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B478 RID: 46200 RVA: 0x001E6FCC File Offset: 0x001E51CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B479 RID: 46201 RVA: 0x001E6FD8 File Offset: 0x001E51D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.buffList_.WriteTo(ref output, RogueRecordInfo._repeated_buffList_codec);
			this.avatarList_.WriteTo(ref output, RogueRecordInfo._repeated_avatarList_codec);
			this.miracleList_.WriteTo(ref output, RogueRecordInfo._repeated_miracleList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B47A RID: 46202 RVA: 0x001E702C File Offset: 0x001E522C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.buffList_.CalculateSize(RogueRecordInfo._repeated_buffList_codec);
			num += this.avatarList_.CalculateSize(RogueRecordInfo._repeated_avatarList_codec);
			num += this.miracleList_.CalculateSize(RogueRecordInfo._repeated_miracleList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B47B RID: 46203 RVA: 0x001E708C File Offset: 0x001E528C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueRecordInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.buffList_.Add(other.buffList_);
			this.avatarList_.Add(other.avatarList_);
			this.miracleList_.Add(other.miracleList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B47C RID: 46204 RVA: 0x001E70E7 File Offset: 0x001E52E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B47D RID: 46205 RVA: 0x001E70F0 File Offset: 0x001E52F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 18U)
				{
					if (num == 10U)
					{
						this.buffList_.AddEntriesFrom(ref input, RogueRecordInfo._repeated_buffList_codec);
						continue;
					}
					if (num == 18U)
					{
						this.avatarList_.AddEntriesFrom(ref input, RogueRecordInfo._repeated_avatarList_codec);
						continue;
					}
				}
				else if (num == 56U || num == 58U)
				{
					this.miracleList_.AddEntriesFrom(ref input, RogueRecordInfo._repeated_miracleList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040048E5 RID: 18661
		private static readonly MessageParser<RogueRecordInfo> _parser = new MessageParser<RogueRecordInfo>(() => new RogueRecordInfo());

		// Token: 0x040048E6 RID: 18662
		private UnknownFieldSet _unknownFields;

		// Token: 0x040048E7 RID: 18663
		public const int BuffListFieldNumber = 1;

		// Token: 0x040048E8 RID: 18664
		private static readonly FieldCodec<RogueBuff> _repeated_buffList_codec = FieldCodec.ForMessage<RogueBuff>(10U, RogueBuff.Parser);

		// Token: 0x040048E9 RID: 18665
		private readonly RepeatedField<RogueBuff> buffList_ = new RepeatedField<RogueBuff>();

		// Token: 0x040048EA RID: 18666
		public const int AvatarListFieldNumber = 2;

		// Token: 0x040048EB RID: 18667
		private static readonly FieldCodec<RogueRecordAvatar> _repeated_avatarList_codec = FieldCodec.ForMessage<RogueRecordAvatar>(18U, RogueRecordAvatar.Parser);

		// Token: 0x040048EC RID: 18668
		private readonly RepeatedField<RogueRecordAvatar> avatarList_ = new RepeatedField<RogueRecordAvatar>();

		// Token: 0x040048ED RID: 18669
		public const int MiracleListFieldNumber = 7;

		// Token: 0x040048EE RID: 18670
		private static readonly FieldCodec<uint> _repeated_miracleList_codec = FieldCodec.ForUInt32(58U);

		// Token: 0x040048EF RID: 18671
		private readonly RepeatedField<uint> miracleList_ = new RepeatedField<uint>();
	}
}
